<include file="Public/min-header" />
<div class="wrapper">
	<include file="Public/breadcrumb"/>		
    <section class="content ">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">

                <a href="{:U('Order/return_list')}" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>

            </div>

            <div class="panel panel-default">

                <div class="panel-heading">

                    <h3 class="panel-title"><i class="fa fa-list"></i>
                        <if condition="$return_goods[type] eq 0">退款退货</if>

                        <if condition="$return_goods[type] eq 1">换货</if>

                        <if condition="$return_goods[type] eq 2">退款</if>
                    </h3>

                </div>
                <div class="panel-body ">   
                    <!--表单数据-->
                    <form method="post" id="return_form" action="{:U('Order/return_info')}">                    
                        <!--通用信息-->
                    <div class="tab-content col-md-10">                 	  
                        <div class="tab-pane active" id="tab_tongyong">                           
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td class="col-sm-2">订单编号：</td>
                                    <td class="col-sm-8">
                                        <a href="{:U('order/detail',array('order_id'=>$return_goods['order_id']))}">{$return_goods.order_sn}</a>
                                    </td>
                                </tr>  
                                <tr>
                                    <td>用户：</td>
                                    <td>                    

					                    {$user.nick_name}

                                    </td>
                                </tr>  
                                <tr>
                                    <td>申请日期：</td>
                                    <td>                    
					                    {$return_goods.addtime|date="Y-m-d H:i",###}
                                    </td>
                                </tr>                                  
                                <tr>
                                    <td>商品名称：</td>
                                    <td >
                         				{$goods[goods_name]}                   
                                    </td>
                                </tr>  
<!--                                <tr>
                                    <td>退换货：</td>
                                    <td>
                                    <if condition="$return_goods['type'] eq 1">
                                        申请换货
                                    <else />                                     
                                        <if condition="$order_goods['is_send'] eq 3">
                                          已退货
                                        <else />

                                          <a href="{:U('user/return_goods',array('return_goods_id'=>$id))}">

                                          <input class="btn btn-primary" type="button"  value="退款">

                                          </a>                                        
                                        </if>                                        
                                    </if>                                      

                                    </td>
                                </tr>  -->
                                <tr>
                                    <td>退货描述：</td>
                                    <td>                    
					                    用户描述:{$return_goods['reason']}
                                    </td>

                                </tr>
                                <if condition="$return_goods['type']  neq 2">
                                <tr>
                                    <td>用户上传照片：</td>
                                    <td>
                                         <volist name="return_goods[imgs]" id="item">  
                                             <a href="{$item}" target="_blank"><img src="{$item}" width="85" height="85" /></a>&nbsp;&nbsp;&nbsp;                            
                                         </volist>                      					
                                    </td>

                                </tr>
                                </if>

                                <tr>
                                    <td>状态：</td>
                                    <td>
                                    <div class="form-group  col-xs-3">
										<select class="form-control" name="status">
                                             <option value="0" <if condition="$return_goods['status'] eq 0">selected="selected"</if>>未处理</option>

                                             <option value="1" <if condition="$return_goods['status'] eq 1">selected="selected"</if>>已同意</option>

                                             <option value="2" <if condition="$return_goods['status'] eq 2">selected="selected"</if>>已完成</option>                                             
                                        </select>
                                         </div>

                                    </td>
                                </tr>     
                                <tr>
                                    <td>处理备注：</td>
                                    <td>                    
					                    <textarea name="remark" id="remark" cols="" rows=""  class="area" style="width:400px; height:120px;">{$return_goods['remark']}</textarea>                                        
                                    </td>
                                </tr>                                                                                                                                                          
                                </tbody> 
                                <tfoot>
                                	<tr>
                                	<td><input type="hidden" name="id" value="{$id}">
                                	</td>
                                	<td class="text-right"><input class="btn btn-primary" type="submit"  value="保存"></td></tr>
                                </tfoot>                               
                                </table>
                        </div>                           
                    </div>              
			    	</form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
function adsubmit(){
	$('#handleposition').submit();
}
</script>
</body>
</html>